<?php

use Drupal\shusy_store_order_line_product\Entity\ShusyStoreOrderLineProduct;

function shusy_store_order_line_product_shusy_store_order_line_product_add_page() {
  $e = new ShusyStoreOrderLineProduct();
  module_load_include('inc', 'shusy_store_order_line_product', 'shusy_store_order_line_product.forms');
  return drupal_get_form('shusy_store_order_line_product_shusy_store_order_line_product_entity_form', $e, 'add');
}

function shusy_store_order_line_product_shusy_store_order_line_product_view_page(ShusyStoreOrderLineProduct $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_store_order_line_product_shusy_store_order_line_product_edit_page(ShusyStoreOrderLineProduct $e) {
  module_load_include('inc', 'shusy_store_order_line_product', 'shusy_store_order_line_product.forms');
  return drupal_get_form('shusy_store_order_line_product_shusy_store_order_line_product_entity_form', $e, 'edit');
}

function shusy_store_order_line_product_shusy_store_order_line_product_delete_page(ShusyStoreOrderLineProduct $e) {
  module_load_include('inc', 'shusy_store_order_line_product', 'shusy_store_order_line_product.forms');
  return drupal_get_form('shusy_store_order_line_product_shusy_store_order_line_product_delete_form', $e);
}

